package com.github.pig.admin.model.payinterface;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxm
 * @since 2018-09-07
 */
@TableName("pay_interface")
public class PayInterface extends Model<PayInterface> {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.UUID)
    private String id;
    @TableField("app_id")
    private String appId;
    @TableField("mch_id")
    private String mchId;
    @TableField("spbill_create_ip")
    private String spbillCreateIp;
    @TableField("notify_url")
    private String notifyUrl;
    @TableField("trade_type")
    private String tradeType;
    private String key;
    @TableField("community_id")
    private String communityId;
    @TableField(exist = false)
    private String communityName;
    @TableField("del_flag")
    private String delFlag;
    @TableField("pay_type")
    private String payType;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getSpbillCreateIp() {
        return spbillCreateIp;
    }

    public void setSpbillCreateIp(String spbillCreateIp) {
        this.spbillCreateIp = spbillCreateIp;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getTradeType() {
        return tradeType;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PayInterface{" +
        ", id=" + id +
        ", appId=" + appId +
        ", mchId=" + mchId +
        ", spbillCreateIp=" + spbillCreateIp +
        ", notifyUrl=" + notifyUrl +
        ", tradeType=" + tradeType +
        ", key=" + key +
        ", communityId=" + communityId +
        ", delFlag=" + delFlag +
        ", payType=" + payType +
        "}";
    }
}
